import { createApp } from 'vue'
import { createPinia } from 'pinia'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import { addCollection } from 'iconify-icon'
import antDesign from '@iconify-json/ant-design/icons.json'
import { Icon } from '@iconify/vue';



addCollection(antDesign)

// import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
const app = createApp(App)
app.component('IconifyIcon', Icon);
app.use(createPinia())
app.use(router)
app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.mount('#app')
// SVGDescElement
